package com.cuit.zuke.order.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("goods_order")
public class GoodsOrder implements Serializable {
    /**
     * 订单号
     */
    @TableId(type = IdType.INPUT)
    private String orderId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;


    /**
     * 发货地址
     */
    @TableField(value = "shipping_address")
    private String shippingAddress;

    /**
     * 收货地址id
     */
    @TableField(value = "receipt_id")
    private String receiptId;

    /**
     * 0:未处理;1:已发货;2:已签收;3:已完成;4:关闭;-1未付款
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 运单号
     */
    @TableField(value = "wbNo")
    private String wbNo;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "finish_time")
    private Date finishTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;


    @TableLogic
    @TableField(value = "is_delete")
    private Byte isDelete;

    private static final long serialVersionUID = 1L;


}
